<template>
  <div class="recom">
    <div class="recom-item" v-for="item, index in recommends" :key="index">
      <a :href="item.link">
        <img :src="item.image">
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeRecomView',
  props: {
    recommends: {
      type: Array,
      default() {
        return []
      }
    }
  },
}
</script>

<style scoped>
.recom {
  display: flex;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  padding: 10px 0 20px;
  border-bottom: 8px solid #eeeeee;
}

.recom-item {
  flex: 1;
}

.recom-item img {
  width: 75px;
  height: 75px;
  margin-bottom: 8px;
}
</style>